<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改页面</title>
</head>
<body>
    <div style="width: 800px;margin: auto;">
        <form action="/persons/update" method="post">
            <input type="hidden" value="<%= datas[0].id %>" name="id">
            姓名：<input type="text"  name="username" required="required"   value="<%= datas[0].username %>">
            新密码：<input type="password"  name="password" required="required"   value="<%= datas[0].password %>">
            <!--这里的年龄只能输入数字，校验方法引用博客  https://www.cnblogs.com/xcxc/p/3628283.html  -->
            年龄：<input type="text" name="age" required="required" onkeyup="this.value=this.value.replace(/[^\d]/g,'')" value="<%= datas[0].age %> ">

            <input type="submit" value="提交">
        </form>
    </div>
</body>
</html>